package com.yunxi.service.localService.impl.sto;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.page.PageHelperPlus;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.sto.FinanceReportMapper;
import com.yunxi.model.sto.FinanceReport;
import com.yunxi.service.localService.sto.FinanceReportService;
import com.yunxi.sto.pojo.*;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 金融业务报表 服务实现类
 * </p>
 *
 * @author caoYong
 * @since 2019-10-09
 */
@Service
public class FinanceReportServiceImpl extends ServiceImplPlus<FinanceReportMapper, FinanceReport> implements FinanceReportService {

    /**
     * 业务分析
     * @param businessCensusVO
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    @Override
    public PageInfo<BusinessCensusVO> businessCensus(BusinessCensusVO businessCensusVO, Integer pageNum, Integer pageSize) throws Exception {
        PageHelperPlus.startPage(pageNum,pageSize);
        List<BusinessCensusVO> list = baseMapper.businessCensus(businessCensusVO);
        PageInfo<BusinessCensusVO> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }

    @Override
    public List<BusinessCensusVO> businessCensusMonth(BusinessCensusVO businessCensusVO, Integer pageNum, Integer pageSize) {

        List<BusinessCensusVO> list = baseMapper.businessCensusMonth(businessCensusVO);
        return list;
    }

    @Override
    public PageInfo<ExpCarVO> expCarLeaseTime(ExpCarVO expCarVO, Integer pageNum, Integer pageSize) {
        PageHelperPlus.startPage(pageNum,pageSize);
        List<ExpCarVO> list = baseMapper.expCarLeaseTime(expCarVO);
        PageInfo<ExpCarVO> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }

    @Override
    public PageInfo<CreditReportVO> creditRepotr(CreditReportVO creditReportVO, Integer pageNum, Integer pageSize) {
        PageHelperPlus.startPage(pageNum,pageSize);
        List<CreditReportVO> list = baseMapper.creditRepotr(creditReportVO);
        PageInfo<CreditReportVO> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }

    @Override
    public PageInfo<ExpCarFreeVO> expCarFree(ExpCarFreeVO expCarFreeVO, Integer pageNum, Integer pageSize) {
        PageHelperPlus.startPage(pageNum,pageSize);
        List<ExpCarFreeVO> list = baseMapper.expCarFree(expCarFreeVO);
        PageInfo<ExpCarFreeVO> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }

   @Override
   public PageInfo<ProductAnalyzeVO> productAnalyze(ProductAnalyzeVO productAnalyzeVO, Integer pageNum, Integer pageSize) {
       PageHelperPlus.startPage(pageNum,pageSize);
       List<ProductAnalyzeVO> list = baseMapper.productAnalyze(productAnalyzeVO);
       PageInfo<ProductAnalyzeVO> pageInfo = new PageInfo<>(list);
       return pageInfo;
   }

    @Override
    public List<BusinessCensusVO> businessCensusList(BusinessCensusVO businessCensusVO) {
        return baseMapper.businessCensus(businessCensusVO);
    }

    @Override
    public List<CreditReportVO> creditRepotrList(CreditReportVO creditReportVO) {
        return baseMapper.creditRepotr(creditReportVO);
    }

    @Override
    public List<ExpCarVO> expCarLeaseTimeList(ExpCarVO expCarVO) {
        return baseMapper.expCarLeaseTime(expCarVO);
    }

    @Override
    public List<ExpCarFreeVO> expCarFreeList(ExpCarFreeVO expCarFreeVO) {
        return baseMapper.expCarFree(expCarFreeVO);
    }

    @Override
    public List<ProductAnalyzeVO> productAnalyzeList(ProductAnalyzeVO productAnalyzeVO) {
        return baseMapper.productAnalyze(productAnalyzeVO);
    }
}
